package com.example.everying.model.entity.school;/*
 * 项目名称: everything
 * 文件名: SchoolEntity
 * 作者: 张泽阳
 * 日期: 2025/5/19
 * 描述:
 */

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName(value = "school_info")
public class SchoolEntity {

    @TableId
    private String id;

    @ApiModelProperty(value = "学校名称")
    private String schoolName;

    @ApiModelProperty(value = "logo url")
    private String coverImage;

    @ApiModelProperty(value = "学校背景图URL")
    private String backgroundImage;

    @ApiModelProperty(value = "学校简介")
    private String introduction;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

}
